package com.itheima.Test01;

public class Demo09 {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        //public StringBuilder append(任意类型)：添加数据，并返回对象本身
        StringBuilder sb2 = sb.append("hello  ");
        sb.append("hello  ");
        sb.append("world  ");

        sb.append("hello  ").append("world");

        System.out.println("sb:" + sb);

        //public StringBuilder reverse()：返回相反的字符序列
        sb.reverse();
        System.out.println("sb:" + sb);
    }
}
